package com.ckf.serene.config;

/**
 * 支付宝参数类
 *
 * @author serence
 * @date 2021/11/6 23:35
 */
public class AliPayConfig {

    /**
     * 应用ID 应用类型:网页应用
     */
    public static final String APP_ID = "2021xxxxxxxxxxxx";

    /**
     * 应用公钥
     */
    public static final String APP_PUBLIC_KEY = "MIIBxxxxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * 应用私钥
     */
    public static final String APP_PRIVATE_KEY = "MIIExxxxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * 支付宝公钥
     */
    public static final String AliPay_PUBLIC_KEY = "MIIBIxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥
     */
    public static final String merchant_private_key = "MIIBIxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm
     */
    public static final String AliPay_public_key = "MIIBIxxxxxxxxxxxxxxxxxxxxxxxx";

    /**
     * 异步通知地址 外网
     */
    public static final String notify_url = "xxx.xxx.xxx.xxx";

    /**
     * 支付宝支付、退款成功回调地址
     */
    public static final String AliPay_APP_PAY_Callback = "/xxx/xxx/xxx/xxx";

    /**
     * 支付宝网关地址
     */
    public static final String SERVER_URL = "https://openapi.alipay.com/gateway.do";

    /**
     * 签名方式
     */
    public static final String sign_type = "RSA2";

    /**
     * 设置请求格式，固定值json
     */
    public static final String FORMAT = "JSON";

    /**
     * 字符编码  UTF-8 或者 GBK
     */
    public static final String charset = "UTF-8";

    /**
     * 销售产品码，商家和支付宝签约的产品码
     */
    public static final String product_code_app = "QUICK_MSECURITY_PAY";

    /**
     * 支付宝公钥证书
     */
    public static final String AliPay_PUBLIC_CERT = "classpath:cert/alipayCertPublicKey_RSA2.crt";

    /**
     * 应用公钥证书
     */
    public static final String APPLICATION_PUBLIC_KEY_CERT = "classpath:cert/appCertPublicKey_2021.crt";

    /**
     * 支付宝根证书
     */
    public static final String ROOT_CERT_PATH = "classpath:cert/alipayRootCert.crt";

}
